WP_Defender\Component\Firewall A

Total Complexity 63
Dependencies 9
Dependents 5
Total lines 388
Lines of code 200
Logical lines of code 90
Comment lines 114
Methods 19
Properties 0

Methods 19

Method Rating Maintainability Complexity Lines of code
skip_priority_lockout_checks()
A
54 9 21
is_a_staff_access()
S
57 7 16
gather_ips()
S
52 5 26
is_blocklisted_ip()
S
59 5 16
is_cloudflare_request()
S
62 5 12
maybe_show_misconfigured_ip_detection_option_notice()
S
62 5 11
auto_switch_ip_detection_option()
S
59 4 15
is_commencing_staff_access()
S
68 4 6
firewall_clean_up_lockout()
S
54 2 23
is_authenticated_staff_access()
S
78 2 3
update_cron_schedule_interval()
S
70 2 6
firewall_clean_up_temporary_ip_blocklist()
S
69 2 7
update_trusted_proxy_preset_ips()
S
67 2 8
firewall_clean_up_logs()
S
63 2 10
is_xff_notice_ready()
S
76 2 4
is_cf_notice_ready()
S
76 2 4
get_lockout_record_limit()
S
79 1 3
is_switched_ip_detection_notice()
S
79 1 3
delete_slugs()
S
71 1 6